package org.com.creationalPattern.builderPattern;

/**
 * 生成一个建造对象
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/14 14:58
 */
public class T40Builder implements ComputerBuilder {
    private T410 computer=new T410();

    @Override
    public void BuildCpu() {
        computer.setCUP("i5-7900");
    }

    @Override
    public void BuildRam() {
        computer.setRam("16G");
    }

    @Override
    public void BuildHardDisk() {
        computer.setHardDisk("1T SSD");
    }

    @Override
    public void BuildGraphicsCard() {
        computer.setGraphicsCard("Nvidia NVS 3100M");
    }

    @Override
    public void BuildMonitor() {
        computer.setMonitor("14寸 1920*768");
    }

    @Override
    public void BuildOs() {
        computer.setOS("Window10专业版");
    }

    @Override
    public T410 getResult() {
        return computer;
    }
}
